{##
 # Show informacny list.
 #
 # @copyright  Copyright (c) 2010-2011 The Fajr authors (see AUTHORS).
 #             Use of this source code is governed by a MIT license that can be
 #             found in the LICENSE file in the project root directory.
 # @author     Tomi Belan <tomi.belan@gmail.com>
 #             Martin Sucha <anty.sk@gmail.com>
 # 
 #}
{% extends "layout/application.xhtml" %}
{% block title %}Predmet {{ code }}{% endblock %}
{% block application_content %}
  {{ parent() }}
  <table>
    <tr>
      <th>Názov</th>
      <th>Hodnota</th>
    </tr>
    {% for item in list %}
      <tr>
        <td>{{ item.name }}</td>
        {% if item.values|length == 1 %}
          <td>{{ item.values[0] }}</td>
        {% else %}
          <td><ul>
            {% for value in item.values %}
              <li>{{ value }}</li>
            {% endfor %}
          </ul></td>
        {% endif %}
      </tr>
    {% endfor %}  
  </table>
{% endblock %}